home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / thrust-s.53 / thrust-s / thrust / Makefile.binary < prev    next >
Makefile  |  1995-11-05  |  786b  |  43 lines

  1.  
  2. # Written by Peter Ekberg, peda@lysator.liu.se
  3.  
  4. SHELL        = /bin/sh
  5.  
  6. BINDIR       = /usr/local/games
  7. STATEDIR     = /var/games
  8.  
  9. PRG          = thrust
  10. VERSION      = 0.53
  11.  
  12. DISTFILES    = COPYING README INSTALL TODO CHANGES \
  13.                Makefile $(PRG)-$(VERSION).lsm
  14. BINTARFILE   = $(PRG)-bin-$(VERSION).tar.gz
  15.  
  16.  
  17. #######################
  18. #
  19. # Targets.
  20. #
  21. #######################
  22.  
  23. all: install
  24.  
  25. install:
  26.     cp $(PRG) $(BINDIR)/$(PRG)
  27.     chown root.root $(BINDIR)/$(PRG)
  28.     chmod a+rs $(BINDIR)/$(PRG)
  29.  
  30. uninstall:
  31.     rm $(BINDIR)/$(PRG)
  32.     rm $(STATEDIR)/$(PRG).highscore
  33.  
  34. bindist: $(PRG)
  35.     mv $(PRG) $(PRG).binary
  36.     mkdir $(PRG)
  37.     cp -dpf $(DISTFILES) $(PRG)
  38.     mv $(PRG).binary $(PRG)/$(PRG)
  39.     tar -czf $(BINTARFILE) $(PRG)/*
  40.     mv $(PRG)/$(PRG) $(PRG).binary
  41.     rm -rf $(PRG)
  42.     mv $(PRG).binary $(PRG)
  43.